SG Window | Window Object |
PrintClient Method |
Properties Methods Events Constants Error Codes |
Paint window client area to the specified device context.
object.PrintClient(hdc As Long, flags As WndPrintFlags)
Part | Description |
object | The object is expression that evaluates to Window object |
hdc | Required. Handle of the device context to draw in. |
flags | Required. Drawing options. See remarks section for more details. |
The PrintClient method sends WM_PRINTCLIENT message to the window to request that it draw its client area in the specified device context. Note that windows are not required to handle WM_PRINTCLIENT message.
flags parameter can be combination of values defined in the WndPrintFlags enumeration:
Value | Meaning |
prf_CHECKVISIBLE | Draw the window only if it is visible. |
prf_CHILDREN | Draw all visible children windows. |
prf_CLIENT | Draw the client area of the window. |
prf_ERASEBKGND | Erase the background before drawing the window. |
prf_NONCLIENT | Draw the nonclient area of the window. |
prf_OWNED | Draw all owned windows. |